package io.github.stylesmile.knife4j;


import io.github.stylesmile.plugin.Plugin;
import io.github.stylesmile.tool.FastbootUtil;

import java.io.IOException;

/**
 * @author Stylesmile
 */
public class OpenapiKnife4jPlugin implements Plugin {

    /**
     * 基于代码构建
     *
     * @return
     */
    @Override
    public void start(){
        FastbootUtil.addClass(Openapi3Controller.class);
    }

    @Override
    public void init() {
    }

    @Override
    public void end() {
//        String s = null;
//        try {
//            s = OpenApi3Utils.getApiJson("");
//        } catch (IOException e) {
//            System.err.println(e);
//        }
//        System.out.println(s);
    }

}
